package testes;

import java.io.File;
import java.nio.file.Files;
import java.nio.file.attribute.BasicFileAttributes;

import javax.swing.JFileChooser;

import beans.Pasta;
import controller.PastaManager;
import controller.ThreadsController;

public class testePrograma {
	public static void main(String[] args) {
//		JFileChooser escolha = new JFileChooser(new File("/home/fabio/Documentos/"));
//		
//		for(int i=0; i<3;i++){
//			int escolhido = escolha.showOpenDialog(null);
//			if(escolhido == JFileChooser.APPROVE_OPTION){
//				PastaManager.addPasta(new Pasta("indice"+i, new File(PastaManager.getLocal(escolha.getSelectedFile()))));
//			}
//		}
		
		
		/* Windows  */ File path = new File("C:\\Users\\Fabio\\Documents\\TestePadronizacao");
		/* Ubuntu */
		
		Pasta teste = new Pasta("teste", path);
		
		PastaManager.addPasta(teste);
		
		ThreadsController controller = new ThreadsController();
		controller.startTodas();
		
	}
}
